﻿<%@ Page Title="" Language="C#" MasterPageFile="~/design_page/student/student.master" AutoEventWireup="true" CodeFile="student_homework.aspx.cs" Inherits="design_page_student_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="showDiv" style="text-align: center; margin-right: auto; margin-left: auto; height: 166px;">
          <div style="text-align: center; margin-right: auto; margin-left: auto; width: 1070px;" >
        <table cellpadding="0" cellspacing="11" class="style19" 
                  
                  style="text-align: center; margin-top: auto; margin-bottom: auto; width: 1059px;">
            <tr>
                  <td style="width: 761px">



                  <div id="main_homework" runat="server" style="width: 1001px">
                 
                
                 <table border="0" cellspacing="0" cellpadding="0" width="100%">
                 	<tr>
                 		<td>
                        </td>
                 	</tr>
                    <tr>
                 		<td>
                         <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" 
                          GridLines="None" OnRowCommand="GVSecondType1_RowCommand"  width="1000px"
                          AutoGenerateColumns="False" DataKeyNames="_mHid" AllowPaging="True" 
                                onpageindexchanging="gridview_pageindexchanging">
                          <Columns>
                              <asp:TemplateField HeaderText="已完成作业列表">
                                  <ItemTemplate>
                                      <asp:LinkButton ID="LinkButton2" runat="server" 
                                          CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" 
                                          CommandName="selectfinish">选择</asp:LinkButton>
                                  </ItemTemplate>
                              </asp:TemplateField>






                                 <asp:TemplateField HeaderText="作业ID">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homeworkid1" runat="server" Text='<%# Bind("_mHid") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="作业名称">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homeworkname1" runat="server" Text='<%# Bind("_mHname") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                     <asp:TemplateField HeaderText="作业发布时间">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homeworktime1" runat="server" Text='<%# Bind("_mHupdatetime") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                      <asp:TemplateField HeaderText="完成提交时间">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homework_uptime1" runat="server"  Text='<%# Bind("_Hfinishtime") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                       <asp:TemplateField HeaderText="任课教师">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homework_teachername1" runat="server"  Text='<%# Bind("_Tname") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                       <asp:TemplateField HeaderText="分数">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homework_score1" runat="server"  Text='<%# Bind("_Hscore") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>


                                      <asp:TemplateField HeaderText="是否完成">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homework_finish1" runat="server" width="80px" Text='完成'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>


                          </Columns>




                              








                          <AlternatingRowStyle BackColor="White" />
                          <EditRowStyle BackColor="#2461BF" />
                          <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                          <RowStyle BackColor="#EFF3FB" />
                          <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                          <SortedAscendingCellStyle BackColor="#F5F7FB" />
                          <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                          <SortedDescendingCellStyle BackColor="#E9EBEF" />
                          <SortedDescendingHeaderStyle BackColor="#4870BE" />
                      </asp:GridView>







                      <asp:GridView ID="GridView2" runat="server" CellPadding="4" ForeColor="#333333" width="1000px"
                          GridLines="None" OnRowCommand="GVSecondType2_RowCommand" 
                                AutoGenerateColumns="False" onpageindexchanging="gridview2_pageindexchanging">
                          <Columns>
                              <asp:TemplateField HeaderText="未完成作业列表">
                                  <ItemTemplate>
                                      <asp:LinkButton ID="LinkButton2" runat="server" 
                                          CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" 
                                          CommandName="selectfinish1">选择</asp:LinkButton>
                                  </ItemTemplate>
                              </asp:TemplateField>






                                 <asp:TemplateField HeaderText="作业ID">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homeworkid" runat="server" Text='<%# Bind("_mHid") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="作业名称">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homeworkname" runat="server" Text='<%# Bind("_mHname") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                     <asp:TemplateField HeaderText="作业发布时间">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homeworktime" runat="server" Text='<%# Bind("_mHupdatetime") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                      <asp:TemplateField HeaderText="任课教师">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homework_teachername" runat="server" width="254px" Text='<%# Bind("_Tname") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>


                                      <asp:TemplateField HeaderText="是否完成">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_homework_finish" runat="server" width="80px" Text='未完成'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>


                          </Columns>




                              








                          <AlternatingRowStyle BackColor="White" />
                          <EditRowStyle BackColor="#2461BF" />
                          <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                          <RowStyle BackColor="#EFF3FB" />
                          <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                          <SortedAscendingCellStyle BackColor="#F5F7FB" />
                          <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                          <SortedDescendingCellStyle BackColor="#E9EBEF" />
                          <SortedDescendingHeaderStyle BackColor="#4870BE" />
                      </asp:GridView>

                        </td>
                 	</tr>
                 </table>
                

                
                      </div>

                      <div id="detail_homework" runat="server">
                      <table border="0" cellspacing="0" cellpadding="0" style="width: 131%">
                      	  <tr>
                  <td style="width: 354px; width: 125px; vertical-align: top; text-align: right; height: 41px;" >
                      作业题目：</td>
                  <td style="width: 722px; width: 40px; vertical-align: top; text-align: left; height: 41px;" >
                      <asp:TextBox ID="TextBox4" runat="server" Width="455px" Height="25px"></asp:TextBox>
                 </td>
            </tr>
                                 
            <tr>
                  <td style="width: 125px; vertical-align: top; text-align: right; height: 311px;">
                      作业内容：</td>
                  <td style="width: 722px; text-align: left; vertical-align: top; height: 311px;">
                      <asp:TextBox ID="TextBox2" runat="server" Height="295px" TextMode="MultiLine" 
                          Width="754px" style="margin-left: 0px"></asp:TextBox>
                      </td>
            </tr>
                                 
            <tr>
                  <td style="width: 125px; vertical-align: top; text-align: right; height: 250px;">
                      我的答案：</td>
                  <td style="width: 722px; text-align: left; vertical-align: top; height: 250px;">
                      <asp:TextBox ID="TextBox1" runat="server" Height="235px" TextMode="MultiLine" 
                           Width="754px"></asp:TextBox>
                      </td>
            </tr>
                                 
           <tr >
             <td style="width: 125px; vertical-align: top; text-align: right; height: 252px;">
                      <asp:Label ID="Label1" runat="server" Text="参考正确答案:"></asp:Label>
               </td>
              
                  <td style="width: 722px; text-align: left; vertical-align: top; ">
                      <div >
                      <asp:TextBox ID="TextBox3" runat="server" Height="210px" TextMode="MultiLine" 
                         Width="754px"></asp:TextBox>
               </div> 
                 <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="作业提交" 
                          Height="30px" Width="169px" 
                         Visible="False" />
                      <asp:Button ID="Button4" runat="server" onclick="Button4_Click" Text="返回" 
                          Height="30px" Width="169px" 
                         />
                      <asp:Label ID="now_do_homeworkid" runat="server" Text="隐藏标志学生现在要提交的作业ID" 
                          Visible="False"></asp:Label>
                      </td>
            </tr>
                 

                                 
            <tr>
                  <td style="width: 125px">
                      &nbsp;</td>
                  <td style="width: 722px; text-align: left; vertical-align: top; ">
                   

                      </td>
            </tr>
                      </table>

                      </div>
                 </td>
            </tr>
                                 
            <tr>
                  <td style="width: 761px">
                      &nbsp;</td>
                                 
            </tr>
          
                                 
            </table>
       </div> 
    </div>

</asp:Content>

